package com.mjk.common.core.drpc;

import com.mjk.common.base.constns.BeeCommonConstns;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;

import java.util.Properties;

/**
 * @PropertySource 在自定义beandefintion中获取不到，放到这里
 * @author Administrator
 *
 */
@EqualsAndHashCode(callSuper = true)
@Data
@Configuration
@ConfigurationProperties("bee.dubbo")
@PropertySource(value = "classpath:getway.properties",ignoreResourceNotFound=true)
public class DrpcProperties extends Properties {

	private String scanPackage = BeeCommonConstns.BASE_PACKAGE;

	private String basePackage = BeeCommonConstns.BASE_PACKAGE;

	private String appName = "application";

	private String hostIndex = null;

	private String evn = "default";

	private String configServerUrl = "127.0.0.1:2181";

	private String configServerUsername = "user";

	private String configServerPassword;

}
